package lab02.Test02;

import java.util.Scanner;

/**
 * Created by 星月 on 2017/10/12.
 */
public class Circle {
    //属性：半径
    double radius;
    //行为：面积和周长
    double area(){return 3.14*radius*radius;}
    double perimeter(){return 2*3.14*radius;}
    //构造函数
    //main函数
    public static void main(String[] args) {
        Scanner i=new Scanner(System.in);
        double radius=i.nextDouble();
        Circle n=null;
        n=new Circle();
        n.radius=radius;
        n.area();
        n.perimeter();


    }
}
